package org.okcjug.december.map;

import java.util.LinkedHashMap;
import java.util.Set;
import java.util.Map.Entry;

import junit.framework.TestCase;


public class MyLinkedHashMap extends TestCase 
{
	
	public void test_linkedHashMap()
	{
		LinkedHashMap<String, String> myLHM = new LinkedHashMap<String, String>();
		
		myLHM.put("C", "1");
		myLHM.put("B", "2");
		myLHM.put("A", "3");

		assertTrue("expected myLHM to contain the Key   'C'", myLHM.containsKey("C"));
		assertTrue("expected myLHM to contain the Value '2'", myLHM.containsValue("2"));
		
		System.err.println(myLHM);
		
		System.err.println("keySet: " + myLHM.keySet());
		System.err.println("values: " + myLHM.values());
		
		Set<Entry<String, String>> entrySet = myLHM.entrySet();
		System.err.println(entrySet);
	
		
		
	}
}
